<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/website/common/base.jsp"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>${webname }_专业的院外处方药采购平台，种类齐全、品质保障、贴心服务！</title>
<meta name="description" content="巨达药网judayw.com_广州巨孚达医药有限公司旗下的专业院外处方药采购平台，以处方药、新特药为核心品类，涵盖心脑血管、糖尿病、肝胆病等十多个专科用药，提供过万种药店畅销药。" />
<meta name="Keywords" content="药品采购,网上药品采购,处方药,新特药,心脑血管,糖尿病,药店畅销药,网上药店,网上买药,巨孚达,巨达药网,巨达" />

<%@ include file="/website/common/common.jsp"%>
<link href="${webctx }/css/proInfo.css" rel="stylesheet" type="text/css" />
<style>
.col33{color:#333333}
</style>
<%--<script>
$(function(){
	hideRightMenu();
})
</script>--%>
</head>

<body>
<%@ include file="/website/common/top.jsp"%>
<%@ include file="/website/common/head.jsp"%>
<%@ include file="/website/common/menu.jsp"%>
<div id="wrap-Info"> 
	<div class="inner">
    	<div class="text-main">
        	<div class="text-hd"><b style="margin-top:40px"></b> 很抱歉，您查看的商品不存在，可能已下架或者被转移。</div>
        	<div class="text-bd">
            	<p>1.该商品可能已经下架，您可以联系客服,<strong>${syspro.fuwu_phone }</strong></p>
            	<p>2.在顶部搜索框重新输入关键词搜索</p>
            	<p>3.选择下方您可能喜欢的商品</p>
            </div>
        </div>               
    </div>
    <div class="com-box inner mt-10">
    	<div class="likePro">
            <div class="likePro-hd">
                <ul class="likePro-hd-main">
                    <li><i class="c-1-1"></i>猜你喜欢</li>        		
                </ul>
            </div>
            <div class="likePro-bd">
                <ul class="likePro-bd-main" id="maylike">
                    
                </ul>                           
            </div>     	
    </div>
    </div>         
</div>

<%@ include file="/website/common/foot.jsp"%>
<script>
    var pno = 1;
    $(function () {
        loadhomeMaylike(pno);
    });
    function loadhomeMaylike(pno){
        loadMaylike(5,loadMaylikeok,pno);
    }
    function loadMaylike(size,fun,pno){
        var priceid=getBrowsepriceid();
        var url=apiroot+'/product/maylike?priceid='+priceid+"&pagesize="+size;
        if(pno)url+="&pageno="+pno;
        $w.httpRequest({
            url:url,
            data:{},
            ok:function(ret){
                fun(ret.Data);
            }
        })
    }

//    loadMaylike(5,loadMaylikeok);
/*function loadMaylikeok(datas){
	 var panel=$("#maylike");
     debugger;
	  for(var i=0;i<datas.list.length;i++){
		  var data=datas.list[i];
		  var h='<li class="likePro-bd-item" style="border-right:none">'
              +'<div class="likePro-bd-pic"><a href="'+ctx+'/product/info?priceid='+data.id+'" target="_blank"><img src="'+getRandomFileserver()+data.photo+'" style="width:220px;height:220px"/></a></div>'
              +'<a href="'+ctx+'/product/info?priceid='+data.id+'" target="_blank" class="likePro-bd-info">'
              +'    <p class="title">'+data.productname+' '+data.name+'</p>'
              +'    <p><span>'+(data.b_pzwh?data.b_pzwh:"")+'</span></p>'
              +'    <p><span>'+(data.b_chanjia?data.b_chanjia:"")+'</span></p>'
              +'    <p class="cost"><em>采购价¥'+data.price+'</em></p>'
              +'</a>'
              +'</li>';
		  panel.append(h);
	  }
	
}*/
    function loadMaylikeok(datas){
        var panel=$("#maylike");
        panel.html('');
        //maylikepagecount=datas.pcount;
        //checkshowbtn('maylike');
        for(var i=0;i<datas.list.length;i++){
            var data=datas.list[i];
            var cjia=(data.b_chanjia?data.b_chanjia:"");
            if(cjia.length>15)cjia=cjia.substr(0,15)+"...";
            var h='<li class="likePro-bd-item">'
                +'<div class="likePro-bd-pic"><a href="'+ctx+'/product/info?priceid='+data.id+'" target="_blank"><img src="'+getRandomFileserver()+data.photo+'" class="img-bg-loading" style="width:220px;height:220px;" onerror="this.src=\''+ctx+'/website/images/noimg.jpg\'"/></a></div>'
                +'<a href="'+ctx+'/product/info?priceid='+data.id+'" target="_blank" class="likePro-bd-info">'
                +'	<p class="title">'+ data.productname +' ' + (data.b_guige?data.b_guige:"") +'</p>'
                // +'	<p class="col999" style="font-size:12px;">'+(data.b_pzwh?data.b_guige:"")+'</p>'
                +'	<p class="col999" style="font-size:12px;width: 220px;overflow: hidden; white-space: nowrap; text-overflow: ellipsis;">'+cjia+'</p>'
                +'	<p class="cost">'+((isuserauth && islogin)?'¥'+data.price:(!islogin?"<font class='red'>登录可见</font>":"<font class='red'>审核通过可见</font>"))+'</p>'
                +'</a>'
                +'</li>';
            panel.append(h);
        }
    }
</script>
</body>
</html>